#include <gflags/gflags.h>
#include <iostream>

DEFINE_string(ip, "127.0.0.1", "IP地址");
DEFINE_int32(port, 8080, "端口号");
DEFINE_bool(is_debug, true, "调试模式是否开启");

int main(int argc, char* argv[])
{
    google::ParseCommandLineFlags(&argc, &argv, true);
    std::cout << FLAGS_ip << std::endl;
    std::cout << FLAGS_port << std::endl;
    std::cout << FLAGS_is_debug << std::endl;
    return 0;
}